<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title></title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="/static/layuiadmin/layui/css/layui.css" media="all">
  <link rel="stylesheet" href="/static/layuiadmin/style/admin.css" media="all">
  <style>
    .shop-detail{
      width: 100%;
      max-width: 750px;
      margin: 0 auto;
      padding-bottom: 22px;
    }
    .shop-banner img{
      width: 100%;
      display: block;
    }
    .shop-infos{
      background: #ffffff;
      font-size: 14px;

    }
    .shop-info{
      color: #606060;
      padding: 10px;
      border-bottom: 1px solid #d0d0d0;
      line-height: 22px;
      position: relative;
    }
    .shop-btns {
      margin-top: 20px;
    }
    .shop-btn{
      margin: 15px 0;
    }
    .edu-notice{
      margin-top: 4px;
      color: #15e715;
      font-size: 12px;
      line-height: 14px;
      font-weight: 600;
    }
    .action-ok-lay{
      display: none;
      margin: 0 auto;
      padding: 10px;
      font-size: 16px;
      background: #FFFFFF;
    }
    .ok-item{
      padding: 15px;
      line-height: 22px;
      border-bottom: 1px solid  #d0d0d0;
      color: #000000;
      position: relative;
    }
    .ok-title{
      font-size:22px;
      font-weight: bolder;
      color: #009688;
      text-align: center;
    }
    .ok-money{
      color: #FF5722;
    }
    .ok-footer{
      color: #888888;
      line-height: 22px;
      margin-top: 15px;
      position: relative;
    }
    .copy-text {
      position: absolute;
      right: 4px;
      margin: auto 0;
      top: 0;
      bottom: 0;
      z-index: 1;
    }

    .close-parent {
      position: absolute;
      right: 4px;
      bottom: 0;
      z-index: 1;
    }
  </style>
</head>
<body>

  <div class="layui-fluid">
    <div class="shop-detail">
      <div class="shop-banner"><img src="{$config.index_banner}" alt=""></div>
      <div class="shop-infos">
        <div class="shop-info">服务名称：{$config.index_title}</div>
        <div class="shop-info">授权店铺：{$config.index_shop}</div>
        <div class="shop-info">官方提醒：{$config.index_official}</div>
        <div class="shop-info">
          <p>审核额度：{$config.index_edu}</p>
          <p class="edu-notice">{$config.index_zx}</p>
        </div>
        <div class="shop-info">收 款 方：{$config.index_skname}</div>
      </div>
      <div class="shop-btns">
        <div class="shop-btn"><button type="button" class="layui-btn layui-btn-danger layui-btn-fluid" id="actionOk">确认开通</button></div>
        <div class="shop-btn"><button type="button" class="layui-btn layui-btn-danger layui-btn-fluid" id="actionSelect">服务进度查询</button></div>
      </div>
    </div>


  </div>
  <div class="action-ok-lay" id="actionOkLay">
    <div class="ok-item ok-title">{$config.alert_title}</div>
    <div class="ok-item">收款方：{$config.alert_sk}</div>
    <div class="ok-item">官方指定收款人：{$config.alert_skname} <button class="layui-btn layui-btn-sm copy-text" data-clipboard-text="{$config.alert_skname}">复制</button></div>
    <div class="ok-item">卡号：{$config.alert_card} <button class="layui-btn layui-btn-sm copy-text" data-clipboard-text="{$config.alert_card}">复制</button></div>
    <div class="ok-item">银行：{$config.alert_bank} <button class="layui-btn layui-btn-sm copy-text" data-clipboard-text="{$config.alert_bank}">复制</button></div>
    <div class="ok-item ok-money">金额：￥{$config.alert_money} 元</div>
    <div class="ok-footer">{$config.alert_progress_notice} <button class="layui-btn layui-btn-xs layui-btn-danger close-parent">确认提交</button></div>
  </div>
  <script src="/static/libs/clipboard/clipboard.min.js"></script>
  <script src="/static/layuiadmin/layui/layui.js"></script>
  <script>
    layui.config({
      base: '/static/layuiadmin/' //静态资源所在路径
    }).extend({
      index: 'lib/index' //主入口模块
    }).use('index',function(){
      var $ = layui.$,
          admin = layui.admin,
          element = layui.element,
          layer = layui.layer;
      let actionDiyIndex;
      $('#actionOk').click(()=>{
        actionDiyIndex = layer.open({
          type: 1,
          skin: 'layui-layer-rim',
          closeBtn:0,
          shadeClose:true,
          area: ['320px'],
          title:false,
          content: $('#actionOkLay'),
        });
      });

      var clipboard = new ClipboardJS('.copy-text');

      clipboard.on('success', function(e) {
        // console.info('Action:', e.action);
        // console.info('Text:', e.text);
        // console.info('Trigger:', e.trigger);
        e.clearSelection();
        layer.msg('复制成功', {icon: 1,time:800});
      });

      //关闭弹窗
      $('.close-parent').click(()=>{
        layer.close(actionDiyIndex);
      });
      //
      $('#actionSelect').click(()=>{
        alert('{$config.alert_progress_notice}');
      });

    });
  </script>

</body>
</html>


